import * as React from 'react';
import { Toast } from 'antd-mobile-v2';
import Empty from '@/components/empty/index';

interface CompProps {
  dispatch?: any;
}

class PageNotFound extends React.Component<CompProps> {
  componentDidMount() {
    document.title = '页面不存在';
    Toast.fail('页面不存在');
    // this.props.dispatch(ClearAllStoreAction()); // 重置redux
  }
  render(): JSX.Element {
    return (
      <div className="page-not-wechat">
        <Empty text="页面不存在" />
      </div>
    );
  }
}

export default PageNotFound;
